import i18n from 'i18next';
import { ExportDialog } from './exportDialog';

import { BaseCommand } from '@amcax/base';

export const cmdExport: BaseCommand = {
  id: 'CmdExport',
  label: 'command.export',
  icon: 'commands/curved/export',
  noHighlight: true,
  create: (label: string, onClose: () => void) => (
    <ExportDialog
      title={i18n.t(label)}
      onClose={onClose}
    />
  ),
};
